/*
 * @Author: your name
 * @Date: 2022-01-29 10:30:49
 * @LastEditTime: 2022-01-29 11:28:04
 * @LastEditors: LAPTOP-L472H14P
 * @Description: In User Settings Edit
 * @FilePath: \react_front_engineer\src\NodeJs\login&registy\router\userinfo.js
 */
const express = require("express");
const userinfo = express.Router();
const db = require("../dbConnect/mysql")
userinfo.get('/v1/userinfo', (req, res) => {
    const querySql = `SELECT * from user_info  WHERE username="${req.query.name}"`
    db.query(querySql, (err, result) =>{
        res.send(result)
    })
   
})
module.exports = userinfo;